package org.lemon.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.lemon.security.domain.Menu;

import java.util.List;

/**
 * @author LBK
 * @create 2022-06-04 1:05
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户id查询对应的权限
     *
     * @param userId 用户id
     * @return 返回权限集合
     */
    List<String> selectPermsByUserId(Long userId);
}